/* Layout */
import Layout from '@/layout'
export const constantRoutes = [{
    path: '/login',
    component: () => import('@/views/login/index'),
    hidden: true
  },
  {
    path: '/404',
    component: () => import('@/views/404'),
    hidden: true
  },
  {
    path: '*',
    hidden: true,
    redirect: '/404'
  }
]

export const constantRoutesSys = [{
    path: '/',
    component: Layout,
    redirect: '/sys/home',
    show: true,
    meta: {
      id: 110000,
      show: true,
      title: '首页',
      icon: 'dashboard'
    },
    children: [{
      path: '/sys/home',
      name: 'homepage',
      component: () => import('@/views/home/index'),
      meta: {
        title: '首页',
        icon: 'dashboard',
        id: 110001,
        show: true
      }
    }]
  },
  {
    path: '/sys/root',
    component: Layout,
    alwaysShow: true,
    name: 'root',
    redirect: {
      name: 'user-management'
    },
    meta: {
      title: '数据索引',
      icon: 'el-icon-s-help',
      id: 140000,
      show: true
    },
    children: [{
        path: 'user-management',
        name: 'user-management',
        component: () => import('@/views/root/user/index'),
        meta: {
          title: '用户管理',
          icon: 'table',
          id: 140100,
          show: true,
          root: [{
              id: 140102,
              title: '新增',
              show: true
            },
            {
              id: 140103,
              title: '修改',
              show: true
            },
            {
              id: 140104,
              title: '删除',
              show: true
            },
            {
              id: 140105,
              title: '批量删除',
              show: true
            },
            {
              id: 140106,
              title: '分配角色',
              show: true
            },
            {
              id: 140107,
              title: '修改密码',
              show: true
            }
          ]
        }
      },
      {
        path: 'role-management',
        name: 'role-management',
        component: () => import('@/views/root/role/index'),
        meta: {
          title: '索引权限管理',
          icon: 'tree',
          id: 140200,
          show: true,
          root: [{
              id: 140202,
              title: '新增',
              show: true
            },
            {
              id: 140203,
              title: '修改',
              show: true
            },
            {
              id: 140204,
              title: '删除',
              show: true
            },
            {
              id: 140205,
              title: '权限配置',
              show: true
            }
          ]
        }
      },
      {
        path: 'department-management',
        name: 'department-management',
        component: () => import('@/views/root/department/index'),
        meta: {
          title: '索引分级管理',
          icon: 'tree',
          id: 140300,
          show: true,
          root: [{
              id: 140302,
              title: '新增',
              show: true
            },
            {
              id: 140303,
              title: '修改',
              show: true
            },
            {
              id: 140304,
              title: '删除',
              show: true
            }
          ]
        }
      },
      {
        path: 'system-engine',
        name: 'system-engine',
        component: () => import('@/views/dataCollection/systemEngine/index'),
        meta: {
          title: '系统引擎',
          icon: 'tree',
          id: 310123,
          show: true,
          root: [{
              id: 310124,
              title: '工作流引擎',
              show: true
            },
            {
              id: 310125,
              title: '工作流设计器',
              show: true
            },
            {
              id: 310126,
              title: '表单模板',
              show: true
            },
            {
              id: 310127,
              title: '表单设计器',
              show: true
            },
            {
              id: 310128,
              title: '报表模板',
              show: true
            },
            {
              id: 310129,
              title: '报表设计器',
              show: true
            }
          ]
        }
      },
      {
        path: 'dictionaries-management',
        name: 'dictionaries-management',
        component: () => import('@/views/root/dictionaries/index'),
        meta: {
          title: '属性分类',
          icon: 'tree',
          id: 140400,
          show: true,
          root: [{
              id: 140402,
              title: '添加子目录',
              show: true
            },
            {
              id: 140403,
              title: '查看详情',
              show: true
            }
          ]
        }
      },
      {
        path: 'dictionaries-second',
        name: 'dictionaries-second',
        component: () => import('@/views/root/second/index'),
        meta: {
          title: '数据配置',
          icon: 'tree',
          id: 140500,
          show: true,
          root: [{
            id: 140502,
            title: '数据字典管理',
            show: true
          }]
        }
      },
      {
        path: 'assetdata-analysis',
        name: 'assetdata-analysis',
        component: () => import('@/views/root/assetDataAnalysis/index'),
        meta: {
          title: '资产数据分析',
          icon: 'tree',
          id: 140510,
          show: true,
          root: [{
              id: 140512,
              title: '资产数据总量分析',
              show: true
            },
            {
              id: 140513,
              title: '结构化数据资产分析',
              show: true
            },
            {
              id: 140514,
              title: '外部数据资产分析',
              show: true
            },
            {
              id: 140515,
              title: '非结构化数据资产分析',
              show: true
            },
            {
              id: 140515,
              title: '资产数量变化趋势分析',
              show: true
            },
            {
              id: 140515,
              title: '资产存储占用趋势分析',
              show: true
            }
          ]
        }
      },
      {
        path: 'message',
        name: 'message',
        component: () => import('@/views/root/message/index'),
        meta: {
          title: '消息',
          icon: 'tree',
          id: 140480,
          show: true,
          root: [{
              id: 140481,
              title: '待处理',
              show: true
            },
            {
              id: 140482,
              title: '已处理',
              show: true
            }
          ]
        }
      },
      {
        path: 'structuredData-Management',
        name: 'structuredData-Management',
        component: () => import('@/views/root/structuredDataManagement/index'),
        meta: {
          title: '结构化数据管理',
          icon: 'tree',
          id: 140490,
          show: true,
          root: [{
              id: 140491,
              title: '数据库管理',
              show: true
            },
            {
              id: 140492,
              title: '数据表管理',
              show: true
            },
            {
              id: 140493,
              title: '数据表手动注册',
              show: true
            },
            {
              id: 140494,
              title: '数据表自动发现',
              show: true
            },
            {
              id: 140495,
              title: '数据表DDL分析',
              show: true
            },
            {
              id: 140496,
              title: '数据表血缘图谱分析',
              show: true
            }
          ]
        }
      },
    ]
  },
  {
    path: '/sys/dataCollection',
    component: Layout,
    alwaysShow: true,
    name: 'data',
    redirect: {
      name: 'data-extraction'
    },
    meta: {
      title: '数据采集',
      icon: 'el-icon-s-help',
      id: 210000,
      show: true
    },
    children: [{
        path: 'data-extraction',
        name: 'data-extraction',
        component: () => import('@/views/dataCollection/dataExtraction/index'),
        meta: {
          title: '数据抽取',
          icon: 'table',
          id: 210100,
          show: true,
          root: [{
              id: 210102,
              title: '全量抽取',
              show: true
            },
            {
              id: 210103,
              title: '增量抽取',
              show: true
            },
            {
              id: 210104,
              title: '实时数据流',
              show: true
            },
            {
              id: 210105,
              title: '新增',
              show: true
            }
          ]
        }
      },
      {
        path: 'data-conversion',
        name: 'data-conversion',
        component: () => import('@/views/dataCollection/dataConversion/index'),
        meta: {
          title: '数据转换',
          icon: 'tree',
          id: 150200,
          show: true,
          root: [{
              id: 150202,
              title: '空值转换',
              show: true
            },
            {
              id: 150203,
              title: '字符替换',
              show: true
            },
            {
              id: 150204,
              title: '数据剔除',
              show: true
            },
            {
              id: 150205,
              title: '数据合并',
              show: true
            },
            {
              id: 150206,
              title: '表路由',
              show: true
            }
          ]
        }
      },
      {
        path: 'data-write',
        name: 'data-write',
        component: () => import('@/views/dataCollection/dataWrite/index'),
        meta: {
          title: '数据写入',
          icon: 'tree',
          id: 160200,
          show: true,
          root: [{
              id: 160202,
              title: '单表写入',
              show: true
            },
            {
              id: 160203,
              title: '多表写入',
              show: true
            },
            {
              id: 160204,
              title: '实时数据流',
              show: true
            }
          ]
        }
      },
      {
        path: 'file-migration',
        name: 'file-migration',
        component: () => import('@/views/dataCollection/fileMigration/index'),
        meta: {
          title: '文件迁移',
          icon: 'tree',
          id: 170200,
          show: true,
          root: [{
            id: 170202,
            title: '协议管理',
            show: true
          }]
        }
      },
      {
        path: 'task-management',
        name: 'task-management',
        component: () => import('@/views/dataCollection/taskManagement/index'),
        meta: {
          title: '任务管理',
          icon: 'tree',
          id: 180200,
          show: true,
          root: [{
              id: 180202,
              title: '新建任务',
              show: true
            },
            {
              id: 180202,
              title: '任务操作',
              show: true
            },
            {
              id: 180202,
              title: '任务控制',
              show: true
            },
            {
              id: 180202,
              title: '任务告警',
              show: true
            }
          ]
        }
      },
      {
        path: 'dispatch-management',
        name: 'dispatch-management',
        component: () => import('@/views/dataCollection/dispatchManagement/index'),
        meta: {
          title: '调度管理',
          icon: 'tree',
          id: 180210,
          show: true,
          root: [{
              id: 180211,
              title: '新建调度任务',
              show: true
            },
            {
              id: 180212,
              title: '调度任务操作',
              show: true
            },
            {
              id: 190213,
              title: '规则配置',
              show: true
            }
          ]
        }
      },
      {
        path: 'resource-management',
        name: 'resource-management',
        component: () => import('@/views/dataCollection/resourceManagement/index'),
        meta: {
          title: '资源管理',
          icon: 'tree',
          id: 200200,
          show: true,
          root: [{
              id: 200202,
              title: '硬件资源管理',
              show: true
            },
            {
              id: 200202,
              title: '软件资源管理',
              show: true
            }
          ]
        }
      }
    ]
  },
  {
    path: '/sys/dataServer',
    component: Layout,
    alwaysShow: true,
    name: 'dataServer',
    redirect: {
      name: 'dataCatalog-Management'
    },
    meta: {
      id: 310130,
      show: true,
      title: '数据服务',
      icon: 'el-icon-s-help'
    },
    children: [{
        path: 'dataCatalog-Management',
        name: 'dataCatalog-Management',
        component: () => import('@/views/dataServer/dataCatalogManagement/index'),
        meta: {
          title: '数据目录管理',
          icon: 'dashboard',
          id: 310131,
          show: true,
          root: [{
              id: 310132,
              title: '数据导入',
              show: true
            },
            {
              id: 310133,
              title: '数据表关联组合',
              show: true
            },
            {
              id: 310134,
              title: '数据自动更新',
              show: true
            },
            {
              id: 310135,
              title: '数据分捡规则',
              show: true
            },
            {
              id: 310136,
              title: '数据目录',
              show: true
            },
            {
              id: 310137,
              title: '数据共享',
              show: true
            },
          ]
        }
      },
      {
        path: 'dataService-development',
        name: 'dataService-development',
        component: () => import('@/views/dataServer/dataServiceDevelopment/index'),
        meta: {
          title: '数据服务开发',
          icon: 'dashboard',
          id: 310140,
          show: true,
          root: [{
              id: 310141,
              title: 'Rest定义',
              show: true
            },
            {
              id: 310142,
              title: 'Rest测试',
              show: true
            },
            {
              id: 310143,
              title: '文件导出定义',
              show: true
            },
            {
              id: 310144,
              title: '文件导出测试',
              show: true
            },
            {
              id: 310145,
              title: '数据推送定义',
              show: true
            },
            {
              id: 310146,
              title: '数据推送测试',
              show: true
            },
            {
              id: 310147,
              title: '扩展过滤器定义',
              show: true
            },
          ]
        }
      },
      {
        path: 'dataService-management',
        name: 'dataService-management',
        component: () => import('@/views/dataServer/dataServiceManagement/index'),
        meta: {
          title: '数据服务管理',
          icon: 'dashboard',
          id: 310150,
          show: true,
          root: [{
              id: 310151,
              title: '数据服务使用方管理',
              show: true
            },
            {
              id: 310152,
              title: '数据服务资源申请',
              show: true
            },
            {
              id: 310153,
              title: '数据服务资源审批',
              show: true
            }
          ]
        }
      },
      {
        path: 'dataQueue-management',
        name: 'dataQueue-management',
        component: () => import('@/views/dataServer/dataQueueManagement/index'),
        meta: {
          title: '数据列队管理',
          icon: 'dashboard',
          id: 310160,
          show: true,
          root: [{
              id: 310161,
              title: '列队发布与管理',
              show: true
            },
            {
              id: 310162,
              title: '数据列队调度',
              show: true
            },
            {
              id: 310163,
              title: '离线列队执行引擎',
              show: true
            },
            {
              id: 310164,
              title: '实时列队执行引擎',
              show: true
            }
          ]
        }
      },
      {
        path: 'dataTask-supervision',
        name: 'dataTask-supervision',
        component: () => import('@/views/dataServer/dataTaskSupervision/index'),
        meta: {
          title: '数据任务监管',
          icon: 'dashboard',
          id: 310170,
          show: true,
          root: [{
              id: 310171,
              title: '数据任务分析',
              show: true
            },
            {
              id: 310172,
              title: '任务明细查询',
              show: true
            },
            {
              id: 310173,
              title: '任务跟踪回溯',
              show: true
            }
          ]
        }
      },
    ]
  },
  {
    path: '/sys/dataOperationMaintenance',
    component: Layout,
    alwaysShow: true,
    name: 'dataOperationMaintenance',
    redirect: {
      name: 'log-analysis'
    },
    meta: {
      id: 310200,
      show: true,
      title: '数据运维',
      icon: 'el-icon-s-help'
    },
    children: [{
        path: 'log-analysis',
        name: 'log-analysis',
        component: () => import('@/views/dataOperationMaintenance/logAnalysis/index'),
        meta: {
          title: '日志分析',
          icon: 'dashboard',
          id: 310210,
          show: true,
          root: [{
              id: 310211,
              title: '数据管理日志分析',
              show: true
            },
            {
              id: 310212,
              title: '数据服务日志分析',
              show: true
            },
            {
              id: 310213,
              title: '数据调度日志分析',
              show: true
            },
          ]
        }
      },
      {
        path: 'usability-analysis',
        name: 'usability-analysis',
        component: () => import('@/views/dataOperationMaintenance/usabilityAnalysis/index'),
        meta: {
          title: '可用性分析',
          icon: 'dashboard',
          id: 310220,
          show: true,
          root: [{
              id: 310221,
              title: '数据质量检查规则定义',
              show: true
            },
            {
              id: 310222,
              title: '数据质量检查',
              show: true
            },
            {
              id: 310223,
              title: '数据质量报告',
              show: true
            }
          ]
        }
      },
      {
        path: 'operationMaintenance-monitoringEngine',
        name: 'operationMaintenance-monitoringEngine',
        component: () => import('@/views/dataOperationMaintenance/operationAmaintenanceMonitoringEngine/index'),
        meta: {
          title: '运维监控引擎',
          icon: 'dashboard',
          id: 310230,
          show: true,
          root: [{
              id: 310231,
              title: '数据服务监控',
              show: true
            },
            {
              id: 310232,
              title: '数据管理监控',
              show: true
            },
            {
              id: 310233,
              title: '开发任务调度监控',
              show: true
            }
          ]
        }
      }
    ]
  },
  {
    path: '/sys/configurationManagement',
    component: Layout,
    alwaysShow: true,
    name: 'configurationManagement',
    redirect: {
      name: 'standard-configuration'
    },
    meta: {
      id: 310300,
      show: true,
      title: '配置管理',
      icon: 'el-icon-s-help'
    },
    children: [{
        path: 'standard-configuration',
        name: 'standard-configuration',
        component: () => import('@/views/configurationManagement/standardConfiguration/index'),
        meta: {
          title: '规范配置',
          icon: 'dashboard',
          id: 310310,
          show: true,
          root: [{
              id: 310311,
              title: '规范定义',
              show: true
            },
            {
              id: 310312,
              title: '规范查阅',
              show: true
            },
          ]
        }
      },
      {
        path: 'rule-configuration',
        name: 'rule-configuration',
        component: () => import('@/views/configurationManagement/ruleConfiguration/index'),
        meta: {
          title: '规则配置',
          icon: 'dashboard',
          id: 310320,
          show: true,
          root: [{
              id: 310321,
              title: '数据融合配置',
              show: true
            },
            {
              id: 310322,
              title: '数据筛选配置',
              show: true
            },
          ]
        }
      },
      {
        path: 'protection-configuration',
        name: 'protection-configuration',
        component: () => import('@/views/configurationManagement/protectionConfiguration/index'),
        meta: {
          title: '保护配置',
          icon: 'dashboard',
          id: 310330,
          show: true,
          root: [{
              id: 310331,
              title: '共享模块配置',
              show: true
            },
            {
              id: 310332,
              title: '数据封标配置',
              show: true
            },
          ]
        }
      },
      {
        path: 'proxy-application',
        name: 'proxy-application',
        component: () => import('@/views/configurationManagement/proxyApplication/index'),
        meta: {
          title: '代理应用',
          icon: 'dashboard',
          id: 310340,
          show: true,
          root: [{
              id: 310341,
              title: '代理管理',
              show: true
            },
            {
              id: 310342,
              title: '应用授权管理',
              show: true
            },
          ]
        }
      },
      {
        path: 'dataAuthorization-configuration',
        name: 'dataAuthorization-configuration',
        component: () => import('@/views/configurationManagement/dataAuthorizationConfiguration/index'),
        meta: {
          title: '数据授权配置',
          icon: 'dashboard',
          id: 310350,
          show: true,
          root: [{
              id: 310351,
              title: '数据分类配置',
              show: true
            },
            {
              id: 310352,
              title: '数据分层配置',
              show: true
            },
            {
              id: 310353,
              title: '授权审批管理',
              show: true
            }
          ]
        }
      },
      {
        path: 'earlyWarning-management',
        name: 'earlyWarning-management',
        component: () => import('@/views/configurationManagement/earlyWarningManagement/index'),
        meta: {
          title: '预警管理',
          icon: 'dashboard',
          id: 310360,
          show: true,
          root: [{
              id: 310361,
              title: '事件监测引擎',
              show: true
            },
            {
              id: 310362,
              title: '监测分析',
              show: true
            },
            {
              id: 310363,
              title: '告警结果',
              show: true
            }
          ]
        }
      },
      {
        path: 'compliance-supervision',
        name: 'compliance-supervision',
        component: () => import('@/views/configurationManagement/complianceSupervision/index'),
        meta: {
          title: '合规监管',
          icon: 'dashboard',
          id: 310370,
          show: true,
          root: [{
              id: 310371,
              title: '合规评价',
              show: true
            },
            {
              id: 310372,
              title: '合规报告',
              show: true
            },
            {
              id: 310373,
              title: '风险告警',
              show: true
            }
          ]
        }
      }
    ]
  },
  {
    path: '/sys/visualizationEngineComponents',
    component: Layout,
    alwaysShow: true,
    name: 'visualizationEngineComponents',
    redirect: {
      name: 'visualization-engine'
    },
    meta: {
      id: 310400,
      show: true,
      title: '可视化引擎组件',
      icon: 'el-icon-s-help'
    },
    children: [{
        path: 'visualization-engine',
        name: 'visualization-engine',
        component: () => import('@/views/visualizationEngineComponents/visualizationEngine/index'),
        meta: {
          title: '可视化引擎',
          icon: 'dashboard',
          id: 310410,
          show: true,
          root: [{
              id: 310411,
              title: '数据集成引擎',
              show: true
            },
            {
              id: 310412,
              title: '数据转换引擎',
              show: true
            },
            {
              id: 310413,
              title: '数据加载引擎',
              show: true
            },
          ]
        }
      },
      {
        path: 'visualization-component',
        name: 'visualization-component',
        component: () => import('@/views/visualizationEngineComponents/visualizationComponent/index'),
        meta: {
          title: '可视化组件',
          icon: 'dashboard',
          id: 310420,
          show: true,
          root: [{
              id: 310421,
              title: '饼状图组件',
              show: true
            },
            {
              id: 310422,
              title: '柱状图组件',
              show: true
            },
            {
              id: 310423,
              title: '折线图组件',
              show: true
            },
            {
              id: 310424,
              title: '曲线图组件',
              show: true
            },
            // {
            //   id: 310425,
            //   title: '网格图组件',
            //   show: true
            // },
            {
              id: 310426,
              title: '气泡图组件',
              show: true
            },
            {
              id: 310427,
              title: '雷达图组件',
              show: true
            },
            {
              id: 310428,
              title: '热力图组件',
              show: true
            }
          ]
        }
      },
    ]
  },
  {
    path: '/sys/visualDisplayWarning',
    component: Layout,
    alwaysShow: true,
    name: 'visualDisplayWarning',
    redirect: {
      name: 'visual-display'
    },
    meta: {
      id: 310500,
      show: true,
      title: '可视化展示预警',
      icon: 'el-icon-s-help'
    },
    children: [{
        path: 'visual-display',
        name: 'visual-display',
        component: () => import('@/views/visualDisplayWarning/visualDisplay/index'),
        meta: {
          title: '可视化展示',
          icon: 'dashboard',
          id: 310510,
          show: true,
          root: [{
              id: 310511,
              title: '数据服务驾驶舱',
              show: true
            },
            // {
            //   id: 310512,
            //   title: '数据服务图谱分析',
            //   show: true
            // },
            {
              id: 310513,
              title: '服务访问趋势分析',
              show: true
            },
            {
              id: 310514,
              title: '数据服务使用情况分析',
              show: true
            },
          ]
        }
      },
      {
        path: 'visual-warning',
        name: 'visual-warning',
        component: () => import('@/views/visualDisplayWarning/visualWarning/index'),
        meta: {
          title: '可视化预警',
          icon: 'dashboard',
          id: 310520,
          show: true,
          root: [{
              id: 310521,
              title: '数据分布预警',
              show: true
            },
            {
              id: 310522,
              title: '数据全景预警',
              show: true
            }
          ]
        }
      },
    ]
  }
]
